package com.activiti;


import org.activiti.rest.explorer.JsonpCallbackFilter;
import org.activiti.spring.boot.SecurityAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication(exclude = {SecurityAutoConfiguration.class, org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class}) //去除冲突
@ComponentScan({"org.activiti.rest.editor" ,"com.activiti"})
@EnableAsync
@EnableEurekaClient
@EnableDiscoveryClient
public class MyactivitiApplication {

    public static void main(String[] args) {
        SpringApplication.run(MyactivitiApplication.class, args);
    }
    @Bean
    public JsonpCallbackFilter filter(){
        return new JsonpCallbackFilter();
    }
}

